package cn.ibizlab.todo.core.extensions.service;

import cn.ibizlab.todo.core.pms.service.impl.ProjectServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.todo.core.pms.domain.Project;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;

/**
 * 实体[项目] 自定义服务对象
 */
@Slf4j
@Primary
@Service("ProjectExService")
public class ProjectExService extends ProjectServiceImpl {


    /**
     * 自定义行为[Favorites]用户扩展
     * @param et
     * @return
     */
    @Override
    @Transactional
    public Project favorites(Project et) {
        return super.favorites(et);
    }
    /**
     * 自定义行为[SaveProject]用户扩展
     * @param et
     * @return
     */
    @Override
    @Transactional
    public Project saveProject(Project et) {
        super.save(et);
        return et;
    }
}

